package com.pda.yuanjing.pages.inbill;

import com.pda.yuanjing.beanout.DownBillBeanOut;
import com.public_module.basemvp.present.BasePresenter;

import java.util.List;

public class InBillPresent extends BasePresenter<InBillModel, InBillView> implements InBillModel.CallBack {

    public void showlist(String bill) {
        view.showProgress();
        model.showlist(bill,this);
    }

    @Override
    public void onshowp(List<DownBillBeanOut.DataBean> list) {
        if(view!=null)
        {
            view.hideProgress();
            view.showlist(list);
        }
    }

    @Override
    public void ontip(String str) {
        if(view!=null)
        {
            view.hideProgress();
            view.tip(str);
        }
    }
}


